class Api::V1::ChildController < ApplicationController
	before_action :authenticate

	
	def index
		sId = getSessionId
		childList = Child.select( "children.id as id,children.name as name,children.lastname1,children.lastname2,schools.name as schoolName")
					.where( :phone_users => { api_key: sId } )
					.joins( :phone_users , :schools )
		
		
		render :json => childList
	end
end